// 应急日报表格配置
export const tables = {
  isSelectFlag: false,
  compRef: "gjxm",
  isSequenceFlag: false,
  autoHeight: true,
  // isShowPage: true,
  // resetFlag: false,
  loading: false,
  tableData: [],
  columns: [
    {
      prop: "unitName",
      label: "所属单位",
      align: "center",
      "min-width": "150px"
    },
    {
      prop: "sd500recover",
      label: "输电线路",
      align: "center",
      children: [
        {
          prop: "sd500recover",
          label: "500kV及以上",
          align: "center",
          children: [
            {
              prop: "sd500recover",
              label: "累计跳闸",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "sd500trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "sd220recover",
          label: "220kV",
          align: "center",
          children: [
            {
              prop: "sd220recover",
              label: "累计跳闸",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "sd220trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "sd110recover",
          label: "110kV",
          align: "center",
          children: [
            {
              prop: "sd110recover",
              label: "累计跳闸",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "sd110trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "sd35recover",
          label: "35kV",
          align: "center",
          children: [
            {
              prop: "sd35recover",
              label: "累计跳闸",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "sd35trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        }
      ]
    },
    {
      prop: "bd500recover",
      label: "变电站",
      align: "center",
      children: [
        {
          prop: "bd500recover",
          label: "500kV及以上",
          align: "center",
          children: [
            {
              prop: "bd500recover",
              label: "累计停运",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "bd500trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "bd220recover",
          label: "220kV",
          align: "center",
          children: [
            {
              prop: "bd220recover",
              label: "累计停运",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "bd220trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "bd110trip",
          label: "110kV",
          align: "center",
          children: [
            {
              prop: "bd110recover",
              label: "累计停运",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "bd110trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        },
        {
          prop: "bd35recover",
          label: "35kV",
          align: "center",
          children: [
            {
              prop: "bd35recover",
              label: "累计停运",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "bd35trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        }
      ]
    },
    {
      prop: "pd10recover",
      label: "配电线路",
      align: "center",
      children: [
        {
          prop: "pd10recover",
          label: "10kV",
          align: "center",
          children: [
            {
              prop: "pd10recover",
              label: "累计停运",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            },
            {
              prop: "pd10trip",
              label: "累计恢复",
              align: "center",
              "min-width": "100px",
              formatter: (row, column, cellValue, index) => {
                if (cellValue === null) {
                  return `0`;
                } else {
                  return `${cellValue}`;
                }
              }
            }
          ]
        }

      ]
    },
    {
      prop: "tqTrip",
      label: "台区",
      align: "center",
      children: [
        {
          prop: "tqRecover",
          label: "累计停电",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "tqTrip",
          label: "累计恢复",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "tqRecoverRatio",
          label: "恢复率",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        }
      ]
    },
    {
      prop: "yhTrip",
      label: "用户",
      align: "center",
      children: [
        {
          prop: "yhRecover",
          label: "累计停电",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "yhTrip",
          label: "累计恢复",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "yhRecoverRatio",
          label: "恢复率",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        }
      ]
    },
    {
      prop: "zyyhTrip",
      label: "重要用户",
      align: "center",
      children: [
        {
          prop: "zyyhRecover",
          label: "累计停电",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "zyyhTrip",
          label: "累计恢复",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        },
        {
          prop: "zyyhRecoverRatio",
          label: "恢复率",
          align: "center",
          "min-width": "100px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === null) {
              return `0`;
            } else {
              return `${cellValue}`;
            }
          }
        }
      ]
    }
  ],
  tableAttr: {
    // "max-height": "470px",
    height: "300px",
    stripe: false,
    border: true,
    showSummary: true,
    fit: true,
    tripe: true,
    "show-header": true,
    "highlight-current-row": true,
    "cell-style": {
      "font-size": "16px"
    },
    "header-cell-style": {
      "text-align": "center",
      "background-color": "#B1C8F9",
      border: "1px solid #ccc",
      "font-size": "16px"
    }
  }
};
// 各单位投入情况表格配置
export const UnitInput = {
  isSelectFlag: false,
  compRef: "gjxm",
  autoHeight: true,
  isSequenceFlag: false,
  // isShowPage: true,
  // resetFlag: false,
  loading: false,
  tableData: [],
  columns: [
    {
      prop: "responseDeptName",
      label: "相关单位/部门",
      align: "center",
      "width": "330px"
    },
    {
      prop: "occurrenceTime1",
      label: "人员（人次）",
      align: "center",
      children: [
        {
          prop: "emergencyRepairPersonNum",
          label: "抢修人员",
          align: "center"
        }, {
          prop: "emergencyBackbonePersonNum",
          label: "基干人员",
          align: "center"
        }
      ]
    },
    {
      prop: "occurrenceTime4",
      label: "车辆（台次）",
      align: "center",
      children: [
        {
          prop: "emergencyRepairVehicleNum",
          label: "抢修车辆",
          align: "center"
        },
        {
          prop: "emergencyTransportVehicleNum",
          label: "运输车辆",
          align: "center"

        },
        {
          prop: "emergencySpecialVehicleNum",
          label: "特种车辆",
          align: "center"

        }
      ]
    },
    {
      prop: "emergencyEquNum",
      label: "装备",
      align: "center",
      "min-width": "120px"

    },
    {
      prop: "emergencySuppliesNum",
      label: "物资",
      align: "center",
      "min-width": "120px"

    }
  ],
  tableAttr: {
    // "max-height": "470px",
    stripe: false,
    border: true,
    fit: true,
    tripe: true,
    "show-header": true,
    "highlight-current-row": true,
    "cell-style": {
      "font-size": "16px"
    },
    "header-cell-style": {
      "text-align": "center",
      "background-color": "#B1C8F9",
      border: "1px solid #ccc",
      "font-size": "16px"
    }
  }
};
// 天气预报情况表格配置
export const WeatherForecast = {
  isSelectFlag: false,
  compRef: "gjxm",
  isSequenceFlag: false,
  autoHeight: true,
  // isShowPage: true,
  // resetFlag: false,
  loading: false,
  tableData: [],
  columns: [
    {
      prop: "location",
      label: "位置",
      align: "center"
    },
    {
      prop: "maxTemperature",
      label: "最高温",
      align: "center"
    },
    {
      prop: "minTemperature",
      label: "最低温",
      align: "center"
    },
    {
      prop: "daytime",
      label: "白天",
      align: "center"
    },
    {
      prop: "night",
      label: "晚上",
      align: "center"
    },
    {
      prop: "wind",
      label: "风况",
      align: "center"
    }
  ],
  tableAttr: {
    // "max-height": "470px",
    stripe: false,
    border: true,
    fit: true,
    tripe: true,
    "show-header": true,
    "highlight-current-row": true,
    "cell-style": {
      "font-size": "16px"
    },
    "header-cell-style": {
      "text-align": "center",
      "background-color": "#B1C8F9",
      border: "1px solid #ccc",
      "font-size": "16px"
    }
  }
};
